<h1>Listing reservations</h1>

<table>
  <tr>
    <th>Customer</th>
    <th>Event</th>
    <th>Date</th>
    <th>Comment</th>
  </tr>

<% for reservation in @reservations %>
  <tr>
    <td><%=h reservation.customer %></td>
    <td><%=h reservation.event %></td>
    <td><%=h reservation.date %></td>
    <td><%=h reservation.comment %></td>
    <td><%= link_to 'Show', reservation %></td>
    <td><%= link_to 'Edit', edit_reservation_path(reservation) %></td>
    <td><%= link_to 'Destroy', reservation, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New reservation', new_reservation_path %>
